package com.home.oss.config;

import com.home.oss.constants.FileTypeConstant;

/**
 * Description: 获取文件上传文件夹
 * Created by 王大宸 on 2020-10-15 21:19
 * Created with IntelliJ IDEA.
 */
public class OssFolder {

    public static String getFolder(String fileType) {
        switch (fileType) {
            case FileTypeConstant.FILE_AVATAR:
                return FileTypeConstant.FILE_AVATAR_FOLDER;
            case FileTypeConstant.FILE_DOC:
                return FileTypeConstant.FILE_DOC_FOLDER;
            default:
                return FileTypeConstant.FILE_OTHER_FOLDER;
        }
    }

}
